﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CS322_V7
{
    class StructExample
    {
        public struct Location
   {
      private int xVal;
      private int yVal;

      public Location( int xCoordinate, int yCoordinate )
      {
         xVal = xCoordinate;
         yVal = yCoordinate;
      }

      public int x
      {
         get
         {
            return xVal;
         }
         set
         {
            xVal = value;
         }
      }

      public int y
      {
         get
         {
            return yVal;
         }
         set
         {
            yVal = value;
         }
      }

      public override string ToString( )
      {
         return ( String.Format( "{0}, {1}", xVal, yVal ) );
      }

   }

   
}


    
}
